import request from "@/util/request.js";

export function reqGetBookPageList(params) {
    return request({
        url: '/book/page',
        method: 'get',
        params
    })
}
export function reqCreateBook(data) {
    return request({
        url: '/book',
        method: 'post',
        data
    })
}
export function reqUpdateBook(data) {
    return request({
        url: '/book',
        method: 'put',
        data
    })
}
export function reqDeleteBookById(id) {
    return request({
        url: '/book/' + id,
        method: 'delete'
    })
}

export function reqGetBookCount() {
    return request({
        url: '/book/count',
        method: 'get'
    })
}
export function reqExportBook() {
    return request({
        url: '/book/export',
        method: 'get',
        responseType: 'blob'
    })
}
